import axios from 'axios'
import { request } from '@/utils/request'
import { request_t,instance} from '@/utils/request2';

//个人中心  创建的职位
    export function GetJobList(data) {
        const url ='/api/user/job/JobPageList';
        let res=request_t(url, 'get', data)
        return res
    };
//个人中心  投递简历者
export function Candidate(id,status) {
    const url = '/api/user/job/Candidate';
    const data = {
        id:id,
        status:status,
        callback: 'callback'
    };
    let res=request_t(url, 'get', data)
    return res
};

//个人中心  职位投递信息的反馈
export function DeliveryFeedback(uid,jid,status,inviteinterview) {
    const url ='/api/user/job/DeliveryFeedback';
    const data = {
        uid:uid,
        jid:jid,
        status:status,
        inviteinterview:inviteinterview,
    };
    let res=request_t(url, 'post', data)
    return res
};

//个人中心  投递简历
export function Delivery(uid,id) {
    const url ='/api/user/job/delivery';
    const data = {
        id: id,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};
//个人中心  取消职位投递
export function JobSignOut(uid,id) {
    const url ='/api/user/job/JobSignOut';
    const data = {
        id: id,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};
//个人中心  删除职位
    export function Delete(id) {
        const url ='/api/user/job/Delete';
        const data = {
            id: id,
            callback: 'callback'
        };
    let res=request_t(url, 'post', data)
    return res
    };